/**
 * 日志打印工具类
 */
package com.baicaoyuan.web.common;


import java.util.Map;

/**
 * @author 罗富祥
 */
public class LogUtil {


    private static Log4jExtend log4jExtend = new Log4jExtend();

    public static void Info(String msg) {
        log4jExtend.Info(msg);
    }

    public static void Error(String title, Exception ex) {
        log4jExtend.Error(title, ex);
    }


    /**
     * 打印请求参数
     *
     * @param reqParam 请求参数列表
     */
    public static void PrintRequestLog(Map<String, String> reqParam) {
        log4jExtend.printRequestLog(reqParam);
    }


    /**
     * 打印返回值
     *
     * @param res 返回内容
     */
    public static void PrintResponseLog(String res) {
        log4jExtend.printResponseLog(res);
    }
}


